#include "Node.h"

Node::Node(void)
{
	Data = "";
	Type = Operand;
	ID = 0;
}

Node::~Node(void)
{}

Node::Node(const string & data, const unsigned int & id, const Nodetype & type)
{
	Data = data;
	ID = id;
	Type = type;
}

const string& Node::GetData() const
{ return Data; }

const unsigned int& Node::GetID() const
{ return ID; }

const Nodetype& Node::GetNodetype() const
{ return Type; }

Node& Node::operator=(const Node& other)
{
	Data = other.GetData();
	ID = other.GetID();
	Type = other.GetNodetype();

	return Node(other.GetData(),other.GetID(),other.GetNodetype());
}